<admintpl file="header" />
<style>
table {
    border: 1px solid;
}

table tr {}

.pagination{
	float: center;
	border: 2px;
	padding: 10px;
}
#nav {
    margin-top: 20px;
}

table td {
    border: 1px solid #999;
}
</style>
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
</head>

<body>
    <ul class="nav nav-tabs" id="nav">
        <li class="active"><a href="javascript:;">智能采集器管理</a></li>
        <li><a href="{:U('AdminIndex/add',array('categoryId'=>'7'))}" target="_self">添加采集器设备</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('AdminIndex/productE')}">
        分类：
        <select class="select_2" name="term">
            <option value='0'>全部</option>
             
                <?php 
				foreach ($Titles as $title) {
					$t=$title["title"];
				?>
				<option value="{$t}">{$t}</option>

                <?php
				}
				?>
            
        </select> &nbsp;&nbsp; 时间：
        <input type="text" name="start_time" class="js-date" value="{$formget.start_time|default=''}" style="width: 80px;" autocomplete="off">-
        <input type="text" class="js-date" name="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp; 关键字：
        <input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入关键字...">
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
     <div class="pagination">{$page}</div>

    <form class="js-ajax-form" action="" method="post">
        <div class="table-actions">
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/listorders')}">排序</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('check'=>1))}" data-subcheck="true">审核</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('uncheck'=>1))}" data-subcheck="true">取消审核</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('top'=>1))}" data-subcheck="true">置顶</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('untop'=>1))}" data-subcheck="true">取消置顶</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/delete')}" data-subcheck="true" data-msg="你确定删除吗？">{:L('DELETE')}</button>
            <button class="btn btn-primary btn-small js-articles-move" type="button">批量移动</button>
        </div>
       
        <div>
            <table class="table table-hover table-bordered table-list">
                <thead>
                    <tr>
                        <th width="35">
                            <label>
                                <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                            </label>
                        </th>
                        <th> ID</th>
                        <th>样品</th>
                        <th>名称</th>
                        
                        <th>简介</th>
                        <th>功能</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <php>
                    $status=array("1"=>"已审核","0"=>"未审核"); $top_status=array("1"=>"已置顶","0"=>"未置顶"); $recommend_status=array("1"=>"已推荐","0"=>"未推荐");
                </php>
                <foreach name="productE" item="vo">
                    <tr>
                        <td>
                            <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}">
                        </td>
                        <td> {$vo["id"]} </td>
                        
                        <?php 
						$url="http://localhost:8089/thinkcmfx/public/uploadFiles/images/admin/201304/01.jpg";
						$url=$vo["imageurl"];
						$url=preg_replace("/\.axd/", "", $url);
						$url=preg_replace("/\/{2}/", "/", $url);
						$url1="http://localhost:8089"."__PUBLIC__"."".$url;

						?>
                        <td width="200px"><img src="{$url1}" width="200px" /> </td>
                        <td width="200px">{$vo["title"]}</td>
                        <td width="200px"> {$vo["content"]} </td>
                        <td width="200px">{$vo["extendcontent01"]}</td>
                        <td  > <a href="{:U('AdminIndex/edit',array('id'=>$vo['id'],'categoryId'=>'7'))}">编辑</a> |
                            <a href="{:U('AdminIndex/delete',array('id'=>$vo['id'],'categoryId'=>'7'))}">删除</a></td>
                    </tr>
                </foreach>
                <tfoot>
                    <tr>
                        <th width="15">
                            <label>
                                <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                            </label>
                        </th>
                        <th> ID</th>
                        <th> 名称</th>
                        <th>简介</th>
                        <th>功能</th>
                        <th>操作</th>
                    </tr>
                </tfoot>
            </table>
        </div>

		  
		

        <div class="table-actions" style="height:100px; margin-top:10px;">
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/listorders')}">排序</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('check'=>1))}" data-subcheck="true">审核</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('uncheck'=>1))}" data-subcheck="true">取消审核</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('top'=>1))}" data-subcheck="true">置顶</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('untop'=>1))}" data-subcheck="true">取消置顶</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/delete')}" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
            <button class="btn btn-primary btn-small js-articles-move" type="button">批量移动</button>
        </div>
        <div class="pagination">{$page}</div>
 
</body>

</html>
